import request from '@/utils/request'

// 查询资金流水列表
export function listcapitalFlowInfo(query) {
  return request({
    url: '/business/capitalFlowInfo/list',
    method: 'get',
    params: query
  })
}

// 查询资金流水详细
export function getcapitalFlowInfo(id) {
  return request({
    url: '/business/capitalFlowInfo/' + id,
    method: 'get'
  })
}

// 新增资金流水
export function addcapitalFlowInfo(data) {
  return request({
    url: '/business/capitalFlowInfo',
    method: 'post',
    data: data
  })
}

// 修改资金流水
export function updatecapitalFlowInfo(data) {
  return request({
    url: '/business/capitalFlowInfo',
    method: 'put',
    data: data
  })
}

// 删除资金流水
export function delcapitalFlowInfo(id) {
  return request({
    url: '/business/capitalFlowInfo/' + id,
    method: 'delete'
  })
}

// 导出资金流水
export function exportcapitalFlowInfo(query) {
  return request({
    url: '/business/capitalFlowInfo/export',
    method: 'get',
    params: query
  })
}